package groupon.user.dao;

import groupon.user.model.User;
import groupon.user.model.UserSearch;

import java.util.List;

public interface UserDao {
	public void save(User user);
	public boolean delete(Integer id);
	public List<User> searchAll();
	public User update(User user);
	public User findUser(Integer id);
	public User findUserByUsernameOrEmail(String username, String email);
	public List<User> findInRange(int firstResult, int maxResults);
	List<User> searchUserInRange(UserSearch userSearch, int firstResult,
			int maxResults);
}
